<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>宝钢彩涂板管理后台</title>
    <link rel="stylesheet" href="/static/css/normalize.css">
	<link rel="stylesheet" href="/static/css/list.css">
	<link rel="stylesheet" href="/static/css/color-style.css">
	<link rel="stylesheet" href="/static/css/font-awesome.min.css">
    <script type="text/javascript" src="/static/js/jquery-1.11.1.min.js"></script>
</head>
<body>
	<!-- 列表内容 -->
	<div class="list-box">
		<div class="searchbox">
			<form action="" class="form-inline">
				<div class="el-form-item">
					<div class="el-form-item__content">
						<div class="el-input el-input--medium">
							<h2>权限角色列表</h2>
						</div>
					</div>
				</div>
			</form>
			<div class="button-container" style="float: right;">
				<button type="button" class="button -green center add" style="line-height: 1.4; margin-top: 3px; width: 80px;">
					<i class="fa fa-plus"></i>
					<span class="span-search">添 加</span>
				</button>
			</div>
		</div>
		<div id="MainForm">
			<div class="form_boxA">
				<table cellpadding="0" cellspacing="0">
					<tr>
						<!--<th><input type="checkbox"></th>-->
						<th>序号</th>
						<th>角色名称</th>
						<th width="70%">拥有权限</th>
						<th>操作</th>
					</tr>

					{neq name="$auth_fun" value=""}
						{foreach $auth_fun as $k => $v}
							<tr>
								<!--<td><input type="checkbox"></td>-->
								<td>{$v.id}</td>
								<td>{$v.role_name}</td>
								<td>{$v.role_res}</td>
								<td><a href="{:Url('authFun/delete',[ 'id'=> $v['id'] ])}" style="color: #ff1a29">删除</a> | <a href="{:Url('authFun/edit',[ 'id'=> $v['id'] ])}">修改</a>
							</tr>
						{/foreach}
					{/neq}
				</table>
			</div>
		</div>

		<div class="clear"></div>
	</div>
</body>
<script>
	$('.add').click(function(){
	    window.location.href="{:Url('authFun/add')}";
	});
</script>
</html>